package com.spring.demo.ws;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ws.server.endpoint.annotation.Endpoint;
import org.springframework.ws.server.endpoint.annotation.PayloadRoot;
import org.springframework.ws.server.endpoint.annotation.RequestPayload;
import org.springframework.ws.server.endpoint.annotation.ResponsePayload;

import com.spring.demo.domain.User;
import com.spring.demo.service.UserService;

//@Endpoint
public class UserProfileEndpoint {

//	private UserService userService;
//	
//    @Autowired
//    public UserProfileEndpoint(UserService userService) {
//        this.userService = userService;
//    }
//
//    @PayloadRoot(localPart ="UserProfileCreateRequest", namespace ="http://shekhar.com/usermanagement/schemas")
//    @ResponsePayload
//    public User ProfileCreateResponsecreate(@RequestPayload UserProfileCreateRequest request) {
//        String message =userService.createUser(request.getUserProfile());
//        UserProfileCreateResponse response= new UserProfileCreateResponse();
//        response.setMessage(message);
//        return response;
//    }
    
}
